package com.kevin.learn;

import java.util.Date;

public class CalculateTest {

    public static void main(String[] args) {

        Date start = new Date();
       
        for (int i = 0; i < 100000; i++) {
            System.out.println("计算:" + 1.1 * Math.random());
            System.out.println("计算:" + 1.2 * Math.random());
        }
        Date end = new Date();

        long between = (end.getTime() - start.getTime()) / 1000;//除以1000是为了转换成秒
        System.out.println(between);
    }
}
